<?php



class JefeMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.JefeMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('jefe');
		$tMap->setPhpName('Jefe');

		$tMap->setUseIdGenerator(true);

		$tMap->setPrimaryKeyMethodInfo('jefe_SEQ');

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('NUMPLANILLA', 'Numplanilla', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addForeignKey('CEDULA', 'Cedula', 'string', CreoleTypes::VARCHAR, 'persona', 'CEDULA', true, 9);

		$tMap->addColumn('NUMFAMICASA', 'Numfamicasa', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('DASINGRESO', 'Dasingreso', 'string', CreoleTypes::VARCHAR, false, 16);

	} 
} 